﻿package mortal.game.view.common.guide.data
{
    import mortal.game.view.guide.*;

    public class AutoGuideData extends Object
    {
        public var mainId:int;
        public var stepId:int;
        public var guideType:String;
        public var guideTypeValue:Object;
        public var clickChildName:String;
        public var clickType:String = "click";
        public var backPackUseItemTips:String = "";
        public var guideActivedType:String = "level";
        public var subType:String = "";
        public var guideActivedTypeValue:Object;
        public var subTypeValue:Object;
        public var needMask:Boolean;
        public var needArrow:Boolean;
        public var arrowDirection:int;
        public var arrowTips:String = "";
        public var guideTime:Number = 6000;
        public var isSaveStep:Boolean = false;
        public var isBreakAfterMaskOut:Boolean = false;
        public var refreshNotGuide:Boolean = false;
        public var rollingTips:String = "";
        public var shortCutPos:int = -1;
        public var needCircleEffect:Boolean = false;
        public var needLightMask:Boolean = false;
        public var noBreakAI:Boolean = false;
        public var noGuidingStatus:Boolean = false;
        public var isTimeOutToTask:Boolean = false;
        public var transparentRects:String;
        public var filterName:String;
        public static const filterRectBitmapMask:String = "filterRectBitmapMask";
        public static const NoMainEndType:String = "NoMainEndType";
        public static const TaskEndNotEndGuide:String = "TaskEndNotEndGuide";
        public static const NoStopOtherGuide:String = "NoStopOtherGuide";

        public function AutoGuideData()
        {
            this.arrowDirection = GuideArrow.Left;
            return;
        }// end function

        public function clone() : AutoGuideData
        {
            var _loc_1:* = new AutoGuideData();
            _loc_1.arrowDirection = this.arrowDirection;
            _loc_1.arrowTips = this.arrowTips;
            _loc_1.backPackUseItemTips = this.backPackUseItemTips;
            _loc_1.clickChildName = this.clickChildName;
            _loc_1.clickType = this.clickType;
            _loc_1.guideActivedType = this.guideActivedType;
            _loc_1.guideActivedTypeValue = this.guideActivedTypeValue;
            _loc_1.guideTime = this.guideTime;
            _loc_1.guideType = this.guideType;
            _loc_1.guideTypeValue = this.guideTypeValue;
            _loc_1.isSaveStep = this.isSaveStep;
            _loc_1.mainId = this.mainId;
            _loc_1.needArrow = this.needArrow;
            _loc_1.needMask = this.needMask;
            _loc_1.stepId = this.stepId;
            _loc_1.isBreakAfterMaskOut = this.isBreakAfterMaskOut;
            _loc_1.refreshNotGuide = this.refreshNotGuide;
            _loc_1.rollingTips = this.rollingTips;
            _loc_1.shortCutPos = this.shortCutPos;
            _loc_1.needCircleEffect = this.needCircleEffect;
            _loc_1.needLightMask = this.needLightMask;
            _loc_1.subType = this.subType;
            _loc_1.subTypeValue = this.subTypeValue;
            _loc_1.filterName = this.filterName;
            _loc_1.transparentRects = this.transparentRects;
            _loc_1.isTimeOutToTask = this.isTimeOutToTask;
            _loc_1.noBreakAI = this.noBreakAI;
            _loc_1.noGuidingStatus = this.noGuidingStatus;
            return _loc_1;
        }// end function

        public function toString() : String
        {
            return this.mainId + "_" + this.stepId;
        }// end function

        public function isSubActiveType() : Boolean
        {
            if (this.subType == AutoGuideActivedType.Sub_AddEventListener)
            {
                return true;
            }
            if (this.subType == AutoGuideActivedType.Sub_Fight)
            {
                return true;
            }
            return false;
        }// end function

    }
}
